I'd be happy to be wrong, but I do believe the HELOC would not be tax deductible. Since you are not using the funds for improvement on the home the funds were secured with (which would have to be your primary home or secondary), it wouldn't be tax deductible.
Ive attached a blurb from the IRS website. I'm happy to be shown that I'm wrong.
I am considering a HELOC in the first position on my primary residence but I am seeing that the only way it will be deductible (the interest) would be for improvements on the primary house itself.
"Under the new law, for example, interest on a home equity loan used to build an addition to an existing home is typically deductible, while interest on the same loan used to pay personal living expenses, such as credit card debts, is not. As under prior law, the loan must be secured by the taxpayer’s main home or second home (known as a qualified residence), not exceed the cost of the home and meet other requirements.
The Tax Cuts and Jobs Act of 2017, enacted Dec. 22, suspends from 2018 until 2026 the deduction for interest paid on home equity loans and lines of credit, unless they are used to buy, build or substantially improve the taxpayer’s home that secures the loan."