I don't think there is anything you can do to stop those lights from working. If its receiving input from your keyboard, the left LED should light. If Sonar is sending data to the keyboard, the right LED should light.
Play a MIDI file. Does the right LED light?
What do you have selected for Input and Output on Options-MIDI Devices?
Did you make sure the MIDI OUT from the keyboard is plugged into the MIDI IN of the M-Audio box?
What version of Windows are you using?