Linux Kernel modules (drivers, etc.) are placed is sub-directories of /lib/modules/.
The sub-directories are named after the kernel release (version and build), e.g.:
(on an older system):
# ls -1 /lib/modules/
2.6.35-22-generic
2.6.38-11-generic
2.6.38-12-generic
You can use the output of 'uname -r' in scripts to get the proper directory to search in, according to the kernel release.
# uname -r
4.4.21-gentoo
# ls -1 /lib/modules/
4.4.21-gentoo
# tree -fia /lib/modules/`uname -r`/ | grep -i nvidia