Capture dependencies from `buildDependents`, `buildNeeded`

Is there a way to get the list of dependencies that is evaluated from the buildDependents and buildNeeded tasks?

I want to determine the impact of modifying any given project within a multi-module setup.

One idea I had was something as rudimentary as:

./gradlew :my-module:buildDependents | grep 'build' // insert some actual regex here 

Or maybe the better question is - is there a way to capture the project dependencies of a given project within a multi-module setup?