Spectroscopic Detection of the Onset of Plasma Oscillations in a Gas Discharge