That depends entirely on the mouse (and its capabilities) in question. What make/model are you referring to? What are you trying to achieve?
I have CONNECT IT CI-191, it's a cheap mouse but it has rgb led but you can't control the lightning. I'd like to change firmware of mouse to have the ability of changing colors to my needs.