You can use the Windows API to determine the mouse screen coordinates.
You can use the Revit API UIView class to convert them to Revit project coords.
You can use the element intersector to determine what elements are under the cursor.
Cheers,
Jeremy