Looking at the .NET Reference Source, the SystemInformation.PowerStatus class is just a wrapper around a call to the Win32 function
GetSystemPowerStatus[
^].
[DllImport("kernel32.dll", ExactSpelling=true, CharSet=CharSet.Auto)]
[ResourceExposure(ResourceScope.None)]
public static extern bool GetSystemPowerStatus([In, Out] ref NativeMethods.SYSTEM_POWER_STATUS systemPowerStatus);