Only by characteristic lines in the spectrum.
Or if there is some identification system in place like NEMA-tags, the lamp type is color coded in the tag (and the wattage is in the number).
Hmm interesting. So I'd need a spectrometer? How much would that cost roughly?
I've noticed there are serial numbers on only some of them