According to shareeaa, the child is for the husband, except, if it was proved that he is not, like through the DNA test.
In this case, he is your illegal son, which means that if died, you do not inherit him, and vice versa.
You can not correct the mistake, but you can take the child, if she allows you to do so, or take care of his needs.
Is her husband is still with her?