Argon check power source?

For that you could look at this thread

For detection whether external power is present or not, you can use the VUSB pin with voltage divider to keep the input range between 0 & 3.3V.

About charging, I'm not sure whether the CHG LED can be accessed easily but @rickkas7 may know.