use the GetPixel API, it returns the Red, Green and Blue value of a single pixel at specified co-ordinates - which you can use as the mouse x and y

This is the API declaration...

Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long