A new method to constrain neutron star structure from quasi-periodic oscillations