The blackberry.system.hasPermission method can be used to determine the permissions status of a WebWorks API from within the current application (0 - Allow; 1 - Deny).
A very helpful feature is the blackberry.system.hasCapability method which can be used to determine if a given hardware capability is available on the current device (e.g. WiFi, touchscreen, etc).