There's no easy way to figure out gender identity.
If you feel like you were assigned the wrong sex at birth, you might be experiencing gender dysphoria.
If you're not sure what your gender identity is, but you know you're uncomfortable with your sex, you should look for a gender therapist or research the topic of gender identity.