How to measure 2.5 volts out of 5 volts and serial resistors?
Instead of measuring voltages, you really want to measure the current.  You can do that with any number of specialized integrated circuits, or you can build your own with a sense resistor (or use one of the series elements) and a comparator.  

You can also run the resulting voltages into some ADC inputs and do some math.