Right. It's not HIPPA (both schools and employers are usually exempt, double-whammy there), it's the Civil Rights Act of 1964, specifically Title VII.
You cannot discriminate against a pregnant woman any more than you can against a certain race, etc. The law (as amended in 1979) specifically forbids discrimination against pregnant women REGARDLESS OF MARITAL STATUS.