Retirement tax questions

The deductibility of home interest depends on the collateral for the loan, not on how you spend the proceeds. Since the 401k, not the home, secures the loan, it's not deductible.