Can one check for Rev B or Rev C in software?

I have a remote BBB and I want to check whether it is Rev B or Rev C,
how can I do this using just command line software (I only have ssh
access to it).

debian@test-bbb-2:~$ sudo /opt/scripts/tools/ | grep eeprom


My remote BBB is too old to have that!

I tried copying the script but it produced no output, so I
dug further and just ran the code for the eeprom output, it gives:


So presumably that makes it revision A5, very ancient by BBB
standards. As it reports 4Gb of memory I assume I must be running from
microSD as the EMMC would be 2Gb.