pip list | grep torch will return the packages with torch in their name and the pip wheels using a CUDA runtime would have the +cu113 (or another CUDA version) suffix.
E.g.
pip list | grep torch
torch                         1.11.0.dev20211101+cu113