Record Matinee w/ HMD tracking

It would be quite awesome if it was possible to record the positional and rotational movement of a HMD and use this data as a camera movement and similar.

Is this possible?