Use the ? wildcard for file globbing:
ls -d /tmp/????
This will print all files and directories whose filename is 4-char long.
As suggested by @roaima, the -d flag will prevent ls to display the content of subdirectories that match the pattern.