UPS present check from command line System Preferences in Sierra seems to know when a UPS is present. How do I check this from the command line?
Use the command system_profiler SPPowerDataType | grep "UPS Installed".

This will return something along the lines of UPS Installed: No