Go to System → Settings → General
Log in to your Google Tag Manager account and open a container. In the top right corner (next to the Submit and Preview buttons) you’ll see some short text that starts with GTM- and then contains some letters/numbers. That’s your Google Tag Manager ID. The same ID can be found in the Google Tag Manager container’s code snippet.