I'm not one of the immigration experts here, but certainly you will be allowed to stay here long enough to sort out your life.

I doubt you will be able to stay long enough to get ILR though, as your sponsor (husband) will presumably no longer be able to satisfy the authorities that he is able to continue to meet his commitments.

He also has parental rights over his/your child.

Someone will be along here soon with more accurate advice, but in the meantime I suggest you have a look at the UKBA website.

A few more details concerning your relationship might be useful too...obviously not too personal, but more facts.

What is your current housing and work situation here for example ?