It just takes practice, but be careful. I recommend drinking a lot of fluids before singing. That'll get your voice to a more mouldable status.
It sounds a bit gross, but a lot of screaming is mainly done by the phlegm in your throat, especially in bands like Nirvana. In bands in genres like Screamo, it's basically the same principle.