The digit ratio is influenced by testosterone in the womb while the fetus is forming. Testosterone also impacts other features such as in the brain. For example testosterone increases myelin sheaths on axons (protective against multiple sclerosis which is far more common in females than males) and other far-reaching effects.

However, fetal exposure doesn't tell you how much your own body is currently producing.