I'm not an attorney at all, just a busybody who comments on other people's business, so you should read my posting as only ideas, not advice.
One thing is that, if your lease pre-dates any court orders, then the husband probably had a right to rent out the house to you,so your lease is probably valid.
The next thing is that your lease probably stays valid and binding. Only a court can de-validate or modify the lease. First of all, you are not a party to the divorce (I hope not) so the divorce proceedings judge cannot order the lease invalid or modified. Absolutely not, if you are not brought into the proceedings by being summoned. So, you lease stays in place, you pay rent to whoever and wherever your lease says. Even if you were to be summoned, if you havent done anything wrong, like not paying rent, or damaging house, the judge won't invalidate your lease.
The wife evidently got some kind of order (its not your business, but it would be useful for you to see the order)
but it probably orders the husband in some way (not you). It may order the husband not to do anything like leasing out the house (if it is a temporary order), or it orders the parties to sell the house (tough, the lease goes with the house to whoever buys it), or it orders the husband to not live in the house, or to come near it, or some such thing. It doesn't order you to do anything.
Now if one of the parties was planning to live in the house, they can't. If they made their arrangements in court without taking you into account, then at least one of them is going to be very upset. You don't have to get upset, but they will ytry and take it out on you.
Unless you are served with a court order ordering you to, say, get out of the house, pay some money, stop paying money to whoever and wherever it says on the lease, just keep on paying according to your lease, both the amout, to whom and where is the place of payment. You won't get such an order. Beware of letters from attorneys, no matter how strong, and what they threaten. They may come with court orders attached, but that doesn't count to you because the court orders will not order YOU to do anything.
One kind of order may say that the Husband (Wife) gets the income from the rental. Fine, but that doesn't affect who you pay to, because the court order won't order you to pay to anyone. If the H, W, Court want the money to go somewhere, let them order the husband to pay it to the wife.
Attorneys usually don't like taking NO for an answer, so they will threaten you with everything. Use your head.
And again, plan ahead for how you are going to end up with this whole affair after your lease expires. If someone wants to live in the house NOW, let them pay for your leaving, if that suits YOU. Keep in mind how much hassle and stress may be involved.