The Roland TM2 is basically a MIDI Controller with it's own sample playback / synth engine in the sound module.
How to connect a MIDI Keyboard:
How to assign Parameters to a MIDI Controller:
How to record an external Synth:
While this talks about recording an External Synth, in your case it would be recording the sound module attached to the TM2 Kit.