Sex-determining region Y protein, or testis-determining factor, is a DNA-binding protein encoded by the SRY gene that is responsible for the initiation of male sex determination in therian mammals. From Wikipedia
Replacing hormone thresholds, a one-off DNA swab or blood exam will confirm sex, rerouting any SRY-positive athlete to lower-tier competitions.