How, might I ask? Assuming $1.5M for a townhouse or a house in the Bay Area, Google's mortgage calculator says ~7k monthly in payments. At $160k and 25% tax, you're left w/ 10k/mo; you'd be spending 70% of your income on housing, not counting maintenance. You'd need to make a significant downpayment (which even then, IDK if it helps, since I've seen housing easily range to more than $2M+, and I feel like I'm lowballing it (ha!) at $1.5M) or have your partner also pull a decent income, no?
(I've never bought a house, so please, feel free to inform me, b/c from where I'm standing, it's incredibly daunting.)