Why could it plausibly explain the differences? Seems like a huge leap to me. Basically there is some evidence that men and women are different, on average, to some extent, at the neuropsychological level. There is no evidence linking sex-related neurological traits to being good at or enjoying writing software.
On the other hand, there is evidence that cultural biases specifically discourage women from entering, and push women out of, STEM careers.