I found this utility that replaces the old gpio readall command and works across Raspberry Pi versions.