You can only get that kind of information (e.g. IMEI) if you use IOKit, and you can't submit to the App Store if your app uses IOKit if you're not a part of the MFi (Made for iOS) program, i.e. a hardware manufacturer.
Edit: I'm really getting confused with downvoting on HN. How exactly is this comment poor?