Inky Frame - distinguishing between power sources

Is there a way on the Inky Frame (in MicroPython) to find out if it’s being USB powered or battery powered?