Today a quick command line to know installed packages from a specific repository. If you want to know all installed packages on your machine from download.virtualbox.org:

for package in $(dpkg -l | awk '{print $2}'); do apt-cache madison $package | grep download.virtualbox.org; done

Simple and easy ! Replace download.virtualbox.org with the repository you are searching for.