You're free to withdraw money from any of your retirement accounts at any time, but the federal government may swoop in demanding taxes and penalties if you don't heed all of its rules.