How to get key name only if it contains certain sub key?

just i am not able to code to get key name only if it contains certain sub key

What i actually want here that i want to get the name of a registry key which contain a string with value d:\home