Computer programming is well paying white collar work. It's detail oriented and not social, but neither are accounting and law and those professions have plenty of women.
I'd argue that at face value law is a lot more social. Don't know about accounting - maybe it is not so demanding on the brain - more routine work and less hard thinking? I don't say that to imply women are less good at thinking, just that having to think in general might be unpleasant (the book "Thinking slow and fast" seems to imply that, the brain tries to avoid having to actively think at all costs).
Engineering is generally more social than law. From the minute you get to engineering school, it's all about working in groups. I was shocked to find out how much people in law school hated working in groups. They were humanities majors--they spent all of undergraduate writing papers by themselves instead of working on group projects. When I was an engineer, I had regular team meetings, talked with my team about design challenges every day, kept up correspondence with my customers' teams, etc. As a lawyer I might hole myself up in my office working on a brief for days at a time. My "team" might be three other people on a case who I touch base with once a week.
As for accounting being "less demanding on the brain" I think now you're just grasping at straws.
So you think every accountant could as well be a software developer? Do they earn equal money? Otherwise, why wouldn't they become software developers instead?
With respect to law vs engineering, my point was about the public perception of the jobs, not the actual reality of it. The public perception of lawyers is people wearing stylish and expensive clothes eloquently fighting for what is right. (I am talking of TV and movies).