No need to root though. You can do it many ways. If you have adb drivers installed then boot to twrp:
- go to mount option and mount system,
- plug phone to pc,
- open command prompt, type "adb pull /system/build.prop c:\" (this will download the build.prop from phone to c:\ or wherever),
-...