You can follow the patten on the circuit to each bulb on the lamp to see what terminal go's to what bulb.
As for what wire is what that's easy to work out with a multimeter. Just do a continuity check from the body to each wire till you find the earth. Then go from the earth wire to each other wire in volts working each light till you see 12v