Can we check device has IMEI number or not programmatically in iOS for iPhone/iPad
how-to-check-ipad-have-imei-number-programmatically
There is no API for this.
Suggest you search here for previous discussion, example: Apple Developer Enterprise Account: Get IMEI & Serial Number of iOS Devices