As mentioned above, if the HELOC is jointly owned, you can put the money into an investment account of either spouse, or a joint account.