One would have to apply a fixed magnetic field to the sample and constantly irradiate it and measure the resonant absorption. During the measurement the sample has to be rotated, so that the angle with the magnetic field changes. preferably one starts with a known orientation of the molecule.