AB02 power status

Is there a way in arduino program to find out current power source for the board - battery or some external power source?