Use ADC as Analog Comparator (AttinyAVR)?
If you compare the resistor derived neutral point against the midpoint of the supply while the other two wires are powered you will get the voltage on the un-powered wire at 1/3 magnitude.







simulate this circuit &ndash; Schematic created using CircuitLab