The device plugin (available on the downloads page) provides information about the host computer. It implements the cordova-plugin-device API, and provides a globally accessible device object.
For ionic, follow the directions on the native device page, namely:
$ npm install --save @ionic-native/device
and use as described there.