The size and scope of a patent family can be an important indicator of potential patent value, and therefore a proxy for patent quality*.
To build a domestic US patent family, you would query the USPTO public PAIR database *and review the patent continuity data. Children and parents in the family for any given patent can be identified and queried. This process can be repeated for as many levels as necessary to generate the entire family*.