Meassuring spectrum

let us suppose we have two boxes labelled by A and B

i can not open none of them (the boxes) but i can use an spectrometer to measure the absortion and emission spectrum

i chek that the eigenvalues of both systems are equal , then my question is A and B boxes contain the same QM system??

the idea is, is a system completely defined by knowing its spectrum ??