She should speak with an attorney immediately; the court should be informed of the pregnancy too. Essentially, her husband is going to be presumed to be the legal father until and unless they disestablish paternity.
The divorce will likely be postponed until after the birth.

