The sample needs to be measured multiple times, while changing the orientation of the external magnetic field. It needs to be exposed to the appropriate microwave photons. This will result in an EPR spectrum, from which the g-factors can be determined.