You can use ADB to get all types of information about an Android device:
To check the status of the charger and usb battery:
Adb shell cat /sys/class/power_supply/usb/*
Adb shell cat /sys/class/power_supply/battery/*
Get the current processor operating speed:
Adb shell cat /sys/devices/system/cpu/<cpu
Get free memory:
adb shell vmstat
Link:
https://sites.google.com/site/adbusefulcommands/