Retirement tax questions

Educate yourself on the pros and cons but you could roll the 401K into a SELF DIRECTED IRA and let the IRA buy the property.  You don't pay any taxes or penalties now  BUT  the IRA must not only own the property but it must pay for ALL the expenses for the property ( RE taxes, insurance, repairs, improvements, etc.).