After you file

The deposit will have both names, but probably only one SSN; the name of the "first" spouse (the person on the top line of a printed return).

If you are the spouse named at the top, you would have to check with your bank to see if they will accept a deposit into your spouse's account.  It's up to the bank--the IRS encourages banks to match names and SSNs but the bank can do whatever it wants.