I dont want to use GLUT. How do I get the mouse coordinates?
In the 3D world? Use gluUnproject(). It takes the mouse position in windows and converts it to a position in 3D world.
An example can be found at the end of chapter 3 of the OpenGL redbook.
If you are asking how to actually get the values of the mouse position, it depends upon your OS.