Measuring the angular momentum distribution in core-collapse supernova progenitors with gravitational waves