It depends. Usually, a contract between husband and wife is written when the embryos are created, and it sets out custody terms. Nevertheless, in some states, this contract can be superseded by state law. Of course, if there is no preexisting agreement and no state law, then all bets are off, with the decision likely ending up being made by a court judge.