Yes, that is possible. The TreeSize file search has a predefined template that lists all folders that do not contain any subfolders or files.
You can select this template on the left side of the file search main window under "Select template > Empty folders"
You can configure those groups at: Tools > Options > View > File Groups
Don't hesitate to send us suggestions which extensions you expect in which category. We will be happy to include this in the next release.