A script for selecting specific Bone Objects

Hey guys, is there a script or any kind of technique to select the Bones that are displayed on the skin modifier, thanks