Both ext2 and ext3 have the same magic number: 0xEF53
fdisk -l | grep -i 'Linux$' | fcol 1 - | xargsi sh -c "echo {}:; tune2fs -l {} | grep -E '^Filesystem.*(name|magic)'"
Filesystem features: filetype sparse_super Mount count: 0 Maximum mount count: 31
Filesystem features: has_journal filetype needs_recovery sparse_super Mount count: 18 Maximum mount count: -1