Use
/proc/cpuinfo
to read the One-Time-Programmable hardware version number value burned into the SoC at manufacture (along with the unique serial number, etc).
000f means the Rev 2.0 board with 512M memory. Some of those had 5 burnt in by mistake, but firmware interprets that as f

5 years ago
My revision reads 000d. According to [0], revisions 000d, 000e and 000f all mean ‘Model B Revision 2.0 512MB’, but with a different manufacturer.
[0] http://www.raspberrypi.org/forums/viewtopic.php?p=281257