Actually, the PS/2 bulbs are not supplied with steady DC voltage, but rather a PWM (Pulse Width Modulated) voltage that is effectively 6 volts for the bulb. In order to use that with a flickering LED, you would have to add filtering to make it into pure DC.
The PS/1 locomotives do have a CV (Constant Voltage) board that outputs 6VDC, so that would work with them.