There is an API to obtain the phone number(s) in the phone and whether a number is active or not.
However it's a carrier api, this means Apple allows apps to use it provided they are developed by a carrier. Presumably you are not a carrier, therefore there is no way you can determine the phone number nor when a sim is changed.
Topic:
App & System Services
SubTopic:
Hardware
Tags: