You can use the {http.request.host.labels.2} placeholder to get your subdomain.
{http.request.host.labels.2}
See here: