Installed software path

I am looking for a way to find the path of a software that is listed on an asset. I mean any software listed under the “Installed Software” section, not just ones that have a related vulnerability.

Is there a SQL that can do this or a scan template that I can then view the logs to find the path? I have looked through the other discussions and cannot find an answer.