As noted above, the lack of men in nursing is something that the nursing community worries about.
What I do think anyone who wants to see more women programmers can do is this: if you hear that women (or a woman) is discouraged from X for reason Y do not dismiss their concern. First, reason Y is probably a symptom not the main reason. Second, dismissal is in itself a discouragement, as it implies that their opinion is not worth anything. It would better to reflect on what the main reason might be (or what assumption are you making that may be false).
What I do think anyone who wants to see more women programmers can do is this: if you hear that women (or a woman) is discouraged from X for reason Y do not dismiss their concern. First, reason Y is probably a symptom not the main reason. Second, dismissal is in itself a discouragement, as it implies that their opinion is not worth anything. It would better to reflect on what the main reason might be (or what assumption are you making that may be false).