Retirement tax questions

A 401k is always taxable and a 10% early withdrawal penalty if you are under 59 1/2 unless you have an exception to the penalty BUT buying a home is not one of the exceptions for a 401K.  That's only from a IRA withdrawal.   For a IRA  you can exclude up to 10,000 from the 10% penalty (for each spouse).