The easiest way is to go through all visible sprites on the screen and check whether the mouse is over them while the mouse button is down.