What are the chances that this can cause pregnancy: sperm or precum that were on hands (that touched a penis) penetrating thru two layers of clothes (leggings and underwear)?

Unlikely. Sperm has to enter the vagina in order for conception to occur. I feel that in the scenario you describe, pregnancy is extremely unlikely to occur unless your hands actually came in contact with your vagina.