Probing the Nuclear Spin-Lattice Relaxation Time at the Nanoscale