You can benefit from cordova device plugin
to get more information for the specific device. As an example, please refer to the Device Information
As to disabling the rotation, you can consider using the Screen Orientation plugin. It allows you to dynamically lock or unlock orientation. To add it to your project, you can perform the following steps:
Right click on your project -> Manage packages -> Plugins Marketplace -> Find the plugin and click install.