An excited energy eigenstate lies above the ground level. Its energy is one of the values allowed by the system's Hamiltonian. An atom, for example, can reach an excited level by absorbing light near the frequency corresponding to the energy gap.
If the atom makes a transition to a lower level by emitting a photon, the photon's energy is approximately the gap, . That relationship lets a spectrum reveal which transitions occurred. The levels and their allowed transitions determine what lines appear.
An eigenstate of an ideal isolated, time-independent Hamiltonian is stationary even at high energy. Excited-state decay requires coupling, for instance to the electromagnetic field. How long an excitation lasts depends on that coupling and the selection rules for the available transitions.
An atom can drop from an excited level to another excited level and emit a photon at each step of a cascade. Each emission probes one energy difference. Resolving those differences helps reconstruct the level structure.