MIT Press has a book, "Unlocking the Clubhouse: Women in Computing," (Title link goes straight to the book on Amazon) which discusses how family, education, and institutional barriers often keep Computer Science a women's field. (Photo link below connects to my Amazon Associates account.)
A short synopsis is that boys are often encouraged to take things apart and "break things," while girls are often conditioned not to do that.