Samsung Galaxy Tab 2 10.1 is one of those devices which have little to no chance of getting Android 4.2, also known as Jelly Bean. However the recent builds of CyanogenMod 10.1, which are rather unofficial, would install Android 4.2 on your device and would also boost the general performance.
Like any other ROM, this one would also void your device’s warranty. So, proceed at your own risk. Moreover, if you have not performed ROM installing in the past, please try it under a supervision.