Retirement tax questions

If both parents have separate IRA or 401k accounts can both parents withdraw the $5000 for after childbirth and be exempt from the early withdraw of 10%. I assume that money is still taxed by state and federal taxes.