There is no built-in functionality for that, but you can use the free version of Fraps (which is what I use) and probably other game-focused screen capture software will work too.
thanks :)