The fact that the participation of women varies hugely between cultures (for example, in India, Korea, Israel, Iran, and Lithuania, Romania, it's a lot higher) implies strongly that external factors are far more of a reason why we have so few women than anything biological.
Only in the most shallow analysis.
In many countries, a software development job with a multinational corp is the best job you can hope for unless your parents are politically connected. Better pay and batter status than doctor or lawyer. Here in the US, that's not true, and so women talented enough to pursue the best job around do something else like doctor or lawyer (or vet, which is a better job than doctor these days after malpractice insurance).
Based on my unscientific survey of quite a few interns from India, the vast majority of them entered the field of software development "because my parents chose it for me", male or female. You get that in the US occasionally for doctors or lawyers, of course.