Treat this like any other property you'd consider purchasing. Instead of thinking about it as a $27K tax lien, think about that as the sales price. Knowing what you know about the property, would you buy it from a random seller for 27k?
I don't know your marital situation or life right now, but if I could, I'd move into this house and fix it up as I lived in it. Start with the most pressing issues - roof and HVAC. You don't want to live in a house with a leaky roof and you probably can't live in a house without HVAC. In the northern states you'll freeze to death, in the southern states you'll be miserable. Really dive into what has to be done vs. what you'd like done. Do your cabinets need to be replaced or can do they just need new doors? Those aren't too expensive. Just because windows are single pane doesn't mean they need to be replaced.
Ask for a reduction in the tax lien. Get together a large lump sum and submit an offer. Your state may reject that offer, but they may not. The IRS negotiates with people - you never know until you ask.
Lastly, this is a business deal. Don't force it.