Stay calm. Get a few divorce consultations, you'll feel better armed with facts. In my case, being the dependent stay at home mom was a BIG PLUS. I got to stay in the house, full monthly support until youngest is 18, 100% custody.
In our case, I had quit my job and moved to be home on one income while ex always traveled. Therefore he COULDN'T have any committed custody, and there was no one but me to run the house and care for kids. The best thing for kids was to keep things how they were: I DO everything, and the ex PAYS for everything. I get no alimony because his salary isn't that high, but we are comfortable until I go back to work. The bills and groceries are paid.
My friends with two income homes also left things pretty much the same: They both had to keep working.
So don't start to picture yourselves homeless with hobo packs hitchhiking to your family's homes faraway....Nope. Unless you are an unfit mother, your husband will have to continue support for you all for at least a certain amount of time. People sometimes have to downsize if the incomes in question can't handle two separate households, but in our case, for us to remain in our house was the cheapest option, and the cheating ex has his own cheap apartment now. And he pays for both.
Lay out your situation for lawyer(s). People settle people's divorces for a living, it will work out, so don't pre-worry. No disrespect to Gamma, but I have not had any friends in any states that have had their kids taken from them to go live with the working dad. The stay at home spouse is usually the primary caretaker, and usually remains so. The courts in most cases know that ripping the stay at home parent out of kids lives by "sending them off to work suddenly" and letting them go live with the busiest and most absent parent would not benefit anyone.