Photoelectron spectroscopy

Knocking electrons out of atoms with high-energy light and measuring how much energy each kind takes gives a spectrum with one peak per subshell, its position set by how tightly that subshell is held and its height by how many electrons it holds, which confirms the electron configuration.

From General Chemistry.