Just looking at ionization energies will cause you to miss most transitions, though, and include some that don't exist. Ionization energies are AFAIK given only for the energy levels occupied in the atom's ground state. ie for lithium you have three ionization energies corresponding to the three lowest energy levels. In reality, however, most transitions will involve higher energy levels... eg a transition of the valence electron 2s -> 2p or 2s->3s in lithium.
In addition there are various "selection rules" governing which transitions are possible. For example, photons have spin-1, so in single-photon transitions the total angular momentum must change by 0 or +-1.
In practice you would just look up the spectral lines in a book (eg the CRC) rather than trying to calculate themselves. In the early part of the 20th century there was a whole area of physics devoted to working out predictions (rather postdictions) of spectral lines. As Claude mentioned, it's just elementary quantum mechanics -- you just solve the Schrödinger equations for n interacting electrons in a Coulomb potential -- but this quickly becomes hairy and cleverness in choosing appriximation schemes is necessary. (Or you can just numerically solve the system using a computer.)