setting the mouse position

I have a game where I want to be able to 'lock' the mouse in a certain position (or within the window), and cannot find any related methods in the documentation, and the Input.mousePosition variable is read only, so I can't set it from that.

How would I go about setting the position of the mouse?

There's no direct way to do it in Unity, but you can disable the system pointer and use a software pointer using a GUITexture or whatever (see here for one way to do it), then you can do what you like with that.

I don't know if this will help http://unity3d.com/support/documentation/ScriptReference/Screen-lockCursor.html

but I think you want to set the mouse pointer or mouse cursor (depending on what they like to call it). To set the pointer to a specific place, you may need a system API. Google 'mouse pointer csharp msdn'