Portable battery information is directly scanned from WMI, Windows Management Instrumentation, a management framework built into Windows operating systems. More specifically from the WMI class WIN32_Portablebattery. Unfortunately the serial number of batteries is not stored in WMI and cannot be scanned currently.