There are APIs for companies that do this taint tracking for you, eg: https://bitquery.io/products/coinpath, https://www.chainalysis.com/chainalysis-kyt/, etc