XPLMHasFeature

XPLM_API int        XPLMHasFeature(
                         const char *         inFeature);    

This returns 1 if the given installation of X-Plane supports a feature, or 0 if it does not.