I need to batch identify and modify the fillets of rectangular tubes,so anyone have any ideas about this?

First, I need to identify whether the part is a rectangular tube, and then modify its fillets.
I can obtain all the faces and their adjacency relationships (parallel, perpendicular, or other angel), 

but I can't think of a good idea to identify the features that distinguish a rectangular tube.