Electric Guitar + Computer?

I am wondering if any of you know how to use your computer to record music. I would prefer a way to be able to plug my guitar directly into my pc but I don’t know where to look for the hardware. I saw something about a year ago that plugged into a USB port and came with software that emulated six unique amps but I don’t remember what it was 'cos I didn’t have a guitar at the time.

So do you have any hardware/software solutions?