Detecting power source

Hi,

Is it possible to detect in software if the Arduino MKR SIGFOX 1200 is running on external 5V power source or using battery?

Thanks!
Hans Erik