How does relief valve know power cylinder has reached end of it's travel?
It's a pressure relief valve. It does not "know" anything.
If you kept a control valve open to a hydraulic cylinder after it has reached a mechanical limit, without a pressure relief valve or pressure regulator in the system, the flow stops and the pressure would try to become infinite; things would burst or break...
A pressure relief valve is just something like a poppet valve with a calibrated spring holding it closed, so if the pressure reaches a certain point, the valve is forced open against the spring until the pressure drops enough so the spring overrides it again.
It's the fluid equivalent of a Zener diode in electronics.
They are made in thousands of different forms for various types of fluid systems, but the principals are the same:
The most widely used type of pressure control valve is the pressure-relief valve because it is found in practically every hydraulic system. Schematic diagram
www.hydraulicstatic.com
Re. the second question: The relief valve could be in the pump, allowing fluid from the output back to the input if the pressure gets too high.
Or it could be in the steering gear, bypassing that when there is excess pressure.
Or they could each have one, for reliability & to minimise pressure surges in the pipework.
If it's a steering box rather than rack & pinion style, the hydraulic actuation could be a short straight cylinder, a curved cylinder or a hydraulic motor.
Some Heavy vehicles may have the hydraulic cylinder separate, eg. either fitted crossways between the chassis and trackrod or chassis and wheel arms; sometimes one each side.
If it's an all-in-one box, then all torque is applied via the output shaft from that & Pitman arm.
I'd need a good diagram of the system to follow how the electrical / electric motor part is integrated as there are numerous possibilities.