After you file

The bank should reject the deposit if your name is not on the account.  Then the IRS will mail a check to the address on your return.