The distribution is included in gross income; there is no exclusion in the law for using retirement account funds for this purpose. However, because you are over age 59½, there is no 10% early distribution penalty. Younger participants taking 401(k) withdrawals for home-buying costs are subject to penalty. The exemption from the 10% penalty only applies to withdrawals from IRAs for first-time homebuyers, and only up to $10,000.
For calendar year 2007, taxpayers covered by an HDHP may contribute up to the lesser of the annual deductible or $2,850 ($5,650 for family coverage).