objdump seems like the best way:
objdump
objdump -f libfoo.a | grep ^architecture
The simplest way is to use the file command.
$ file <.so file or .a file>
Just use the file command; i.e. file library.so
file library.so