This post is just a small snippet that will help you to get all products that are used do construct any bundle product.
Of course, I’m not sure how useful can it be as is, so if you need optimized version of it, you will need to play with it for a while.
You will need some basic knowledge of PHP language in order to fix formatting issues that you may (not saying that you will) encounter due strange behavior of code display plugin in wordpress.
I tried to find it on google few days ago and I had no luck, so if anybody has better solution, please comment.
Here we go: