This will require 3rd party software. Word 2013 will generate a QR field, but not Word 2010. Once the code is created, it can be saved as an image file and incorporated into a Word 2010 document.
The following makes generation in Word 2013 easy (but does not work with Word 2010).
Bar Code Add-In