For example, to see how much data was written on an ext4 filesystem on /dev/sda5, one uses:
cat /sys/fs/ext4/sda5/lifetime_write_kbytes
To see how much data in has been written in kilobytes since mount time, read session_write_kbytes, for example:
cat /sys/fs/ext4/sda5/session_write_kbytes
For a full description of all the tunables, consult Documentation/ABI/testing/sysfs-fs-ext4 in the Linux source.