Thermal transport in static and driven Nanoscale Quantum Systems