Do we have the genetics technology to to tell if its natural or social

i am a 23 years old man in pakistan, this society has told me while growing that man marries a woman, and i followed what ever i am told and tried to think myself as having a girl friend etc but it always felt empty.

at this point of my life i think that i am gay, so i want to know that what i am is it natural or the result of environment etc???/ is there any medical technology to determine like genetic test or psychlogical test to know whats going on with me?