You just have to add a third for loop there, for the Z variable, since it's a 3D array.
Also, jhjconstruct, it would be good to know what do you want to do with these indexes, because they may be returned as variables, as a string, as array elements and even as instance variables of the array you're searching. Depending on what you plan some options are better than others.
Cheers.