Experimental study of quantum thermodynamics using optical vortices