How to find out the TeamID of installed apps in macOS High Sierra/Mojave
See this site and this one for some background. 

If you’re trying to find out this info to create profiles for managed Macs to handle new security restrictions when installing kernel extensions, there are numerous discussions on JAMF and Meraki user and support fora.