Go to settings,there will be an option update,press it,if Samsung has provided update to your phone it would flash there so from there you can update it,otherwise if you want to manually upgrade the phone then you will need to root your phone using custom ROM's