Two control signals one GPIO

Low Low is possible if the battery is not present, or (I think) if a battery protection function has kicked in.

And depending on what the pullup resistors are connected to, High High could occur if there is no, or insufficient, power coming into the charger.

I think the voltage divider suggestion would work. It would give a different result for all four possibilities.