hi, can someone please tell me how many % is taxable in a 401k withdrawal and is this on top of the 10% penalty?? if you use the withdrawal to buy a house is there a tax break???

Iam 32 years old and the amount is 31,600 and when do i pay the penalty and the tax? any other alternative with less tax??