Google Colab has a large number of pre-installed libraries. Cuda is also pre-installed there.
You can check this by simply opening a new notebook and type !nvcc --version which would return the installed Cuda version.
Check this:
Hope this answer helps you!