Thanks for the fast reply, works perfectly! In case anyone needs this in the future here's what I have:
public Camera guiCamera;
public Vector2 screenPosition;
screenPosition = guiCamera.ScreenToWorldPoint (Input.mousePosition);
Make sure to drag the camera you're using to display the GUI into guiCamera in the editor.