I'd think most recording software would handle this with ease. Just record your drums on one track, then play/record your guitar tracks while listening to the drums track. That's basically how all my recordings are made.
Reaper is excellent software for this purpose, and is free (well, in theory you're supposed to pay $60 for it after a trial period, but it can still be used whether or not you pay for it).