Reading a Bi-Color LED on Arduino
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. Opto-isolator monitoring of battery charger LEDs.

Wire the opto-isolator LEDs in series with the existing LEDs. The opto's LEDs are infrared and will drop about 1.4 V.

Enable internal pull-up resistors on the micro-controller.