Hey
Most electronic kits have a midi out, so alternatively, record the midi output from the kit, sample the drums individually, or use another sample library. This allows you to edit thr drum line easily!
The drums are already recorded in an electronic kit, or simply generated from a synth, so there is little advantage in actually recording the output of the kit unless you are really into the sound of a particular kit. In that case sample it as above, unless there are samples of it already available.
Cheers
John