Connect the Apple TV 4 to your computer using a USB Type-C cable and make sure its power cable is plugged into the wall.
Launch iTunes from your dock.
Click the Apple TV icon from list of connected devices at the top left of your iTunes window.
Click the invisible button under the words Serial Number to unveil your UDID.
Hint: You can press Command+C on your keyboard to copy the UDID to the clipboard.