Blender can't find GPU on Quadro 4000 and Quadro 2000M
The Quadro 4000 supports CUDA compute capability v2.0 as seen here
https://en.wikipedia.org/wiki/Nvidia_Quadro#Quadro

Blender 2.79 supports NVIDIA cards with CUDA compute capability v2.0-v6.1 as seen here
https://docs.blender.org/manual/en/2.79/render/cycles/gpu_rendering.html#cuda

Blender 2.8 supports NVIDIA cards with CUDA compute capability v3.0 onwards as seen here
https://docs.blender.org/manual/en/2.80/render/cycles/gpu_rendering.html#nvidia-cuda

I believe the latest CUDA toolkit to still include support for the Quadro 4000 is v8.0 GA2 which can be found here
https://developer.nvidia.com/cuda-toolkit-archive
or here https://developer.nvidia.com/cuda-80-ga2-download-archive