for iRS using Direct Pay
https://www.irs.gov/payments/direct-pay
If you have already made a payment through Direct Pay, you can use your confirmation number to access the Look Up a Payment feature. You can also modify or cancel a scheduled payment until two business days before the payment date.
states may offer something similar.