There is also PyTorch cpuinfo library that provides a very precise CPU detection feature, including SoC levels.