Sapna Cheryan and Andy Meltzoff get at the science behind the observation and have some suggestions about what to do:
http://thejournal.com/articles/2015/02/18/want-to-draw-women-into-cs-and-engineering-broaden-the-stereotypes.aspx