No, there is no command to retrieve the mouse's X and Y. Considering you can expose it very easily I think that DC should implement it. However it might lead to security leaks, who knows.
Fu*********k
DC need add that lua command
Edit: Dark Byte have script Weapon replacament
when you select weapon in menu then its come your crosshair and it follow it