How to lock elbow rotation (forward kinematics)
You can use bone constraints to limit bones rotations (and other things) in pose mode:

Here is the wiki on rotation limiting.
The settings depend on actual bone setup and what the bone roll values are. Sometimes the bone roll needs to be also adjusted.

This will allow only rotation in local Z axis:



The range of motion can also be adjusted by setting the angle limits for appropriate axises.