Use req.subdomains, this will give you a list of subdomains used in the url. Here's where I got the information from.
req.subdomains