Measurement of the spiral spectrum of entangled two-photon states