The iPAQGetMainBatteryLevel function will get the main battery level. It will return the remaining capacity as a percentage (0 to 100).
private static extern bool iPAQGetMainBatteryLevel (ref DWORD lpdwLevel);