It sounds like you have:

1. 400 watt High Pressure Sodium ballast; that requires a 400 watt HPS bulb.
2. 400 watt Metal Halide ballast; that requires a 400 watt MH bulb.

Both are excellent for growing indoors...about 3-5 flowering female plants, per light.

used electrical equipment is risky...BEWARE