What penalties are there for withdrawing from retirement ?

I have a 401 k from previous employer and I want to withdrawal from that retirement, but I want to know what kind of penalties there are when filing taxes.