I have read about the IOKit-Extension to get the serial number from an iPhone inside an app: blog.jdevelop.eu
Actually i know one App in the Appstore which reads out
From the developers site:
Be aware that you cannot submit an App with this IOKit-Extension into the Appstore!