The ext2/ext3/ext4 superblock is located at byte offset 1024 from the start of the partition. Its magic number is 0x53EF at offset 56 within the superblock (byte offset 1080 from the partition start).
Superblock contains: total inodes, total blocks, reserved blocks, free blocks, free inodes, first data block, block size (log2), blocks per group, inodes per group, magic, state (clean/error), revision level, ... .