On a RB25DET, the hose joining the 2 rocker covers points forwards. Also, the hose to the PCV valve is smaller, and comes out the side of the driver's side rocker cover.
On a RB20DET, the hose joining the 2 rocker covers points backwards. And the hose to the PCV valve is larger, and comes off the top of the driver's side rocker cover.
And, yes, the engine number should have the engine designation (RB20, RB25) as the first characters.