About getting programmatically IMEI number of the smartphone
You will have to use RAPI and ExTAPI. You will need to create a dll that can
be called from the desktop via CeRapiInvoke (see documentation in the SDK).
To get the IMEI number, see the sample in the SDK called ExTapi.
Note: You will need to sign your dll with a privileged certificate to get
the IMEI or phone number.