I am not totally sure that I have understood your question. If you just want to know whether the name of the folder specified in your variable strHomeFolder you could simply check if the last three letters in this string is
www.
Or do you want to know if the directory exists? If so - there is a method called FolderExists, just as in the code you posted, which should work for that.
If neither of these suggestions is your answer, please be more specific and I will help you.