First of all I think it should be said that when I tried this using Rock Band drums, the input lag was horrible.
Anyways, the most simplest way to do this (without me knowing anything about the drums you are using) would probably be like this (assuming you are using Windows):
1. Go to your Devices in Printers in windows (pr run "joy.cpl" in the run dialog)
2. Right click your e-drum controller and go to "Game controller settings"
3. Select Properties and go to the "Test" tab..
4. Press the drum buttons to see which number the buttons you want to use are registered on
5. Replace 1-4 in this code with the corresponding buttons that you want to use for each key (this code belongs in that "Untitled tab" in your puush).
Key.z = Any.Button1
Key.x = Any.Button2
Key.c = Any.Button3
Key.v = Any.Button4
For example, if you pressed a tom tom and button #4 lights up each time you press it, you would change "Key.x = Any.Button2" to "Key.x = Any.Button4" (this is assuming the "x" key on your keyboard is a don in osu). After all buttons are accounted for, just run the glovepie script. You can test it without opening osu by opening up notepad and trying to type in it using your drums.