Well, unless you want to get fancy, all you need is a cable (1/4 to 1/8), to go from your amp headphone-out to your sound card line-in, and some software for recording. I'd recommend Sound Forge and Sound Forge Acid. For drum loops and backing tracks try Fruity Loops.
Peace out.
-Christoph