You cannot change the direct deposit information after the tax return has been filed and accepted by the IRS.
Since the bank rejected the deposit and returned it to the IRS then the IRS will be mailing the refund check to the address on the tax return.
Your refund will take longer now----you should not try to have money deposited into an account that does not have your own name on it. The IRS will end up mailing a check to the address on your tax return. Going forward, either get your own bank account or get added to the account that your soon -to- be spouse already has.