Getting whether running intel or arm on M1

You mean if the process on an M1 machine runs native on the ARM or is translated from an x86 version via Rosetta? If so, this topic offers several approaches: