The guiding wisdom in the NCAA and some tasks forces is that FtM can play on women's teams until they start testosterone, and then are immediately ineligible for women's teams. As far as I know, an FtM can start playing on a men's team before hormones.
For MtF, they have to be on estrogen for 1yr before they can play on a women's team.