AFAIK, there is no built-in api to determine if airplane mode is on. You should check if the appropriate services are available, depending on what you need in your application.
For example, if you need a GPS location, you can check if the GPS location is available, and then handle various cases. The same goes for the network connection and all other services that are disabled when airplane mode is on.
.