st/xa: Add a function to check for supported formats