AT the level of the egg and sperm ~
But as they say with most prenatal screening, don't do it unless you are willing to act (abort) on the information.
If there were an effective screen for these epigenetic markers and a couple could tell if the child was likely to be homosexual - would be find social conservatives suddenly pro-abort, and homosexuals suddenly anti-abortion?