Connect your electronic drums to a drum module that is equipped with MIDI outputs. (Reference one) (MIDI is an acronym for Musical Instrument Digital Interface.) The drum module is the controller that emulates the sound of drums, and MIDI is required for latency-free connection to a computer. This means your drum will sound through the computer when you hit the drum. If latency occurs it means the drum sound will be delayed.
Install a MIDI-equipped sound card into your computer. Most sound cards the come with a computer are designed to enable a user to listen to music via music player software installed on the computer. Therefore, they do not come equipped with MIDI input. (reference two)
Connect the drum module to the computer's sound card with a MIDI cable. The length of cable used depends on the location of the drum set in correlation to the computer. Because digital drums do not put off vibration, the location of the drums can be within a few inches of he computer.
Install studio monitors to allow for playback of drums when being played. Studio monitors are intentionally voiced to be flat to allow the listener to add digital reverb and effects via recording software. This makes studio monitors better for playing live music then computer stereo monitors that are commonly sold with computers. (reference three)