The vibrational energy of a diatomic molecule can be approximated by extension of the quantum harmonic oscillator. The vibrational energy, Ev, is then Ev = (v + 1/2)hv0 where v is an integer representing vibrational quantum numbers such that v = 0,1,2,3,..., where v=0 for a diatomic molecule at the ground vibrational state; h is Planck's constant; and v0 is the fundamental vibrational frequency. For this problem then, you would need the fundamental vibrational frequency of the particular diatomic atom, and then simply calculate Ev for v=1, and v=2.