All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
You did well by discontinuing use of the pirated software program and deleting it. There is no harm, however, in benefiting from the videos and the money earned through using it. You are not obliged to return the money to the brother whom you helped and he is not obliged to delete those videos.
However, you are still liable for any damages or loss incurred by the software owner from your use of the software without his permission. Compensation of losses is to be paid to the software owner who possesses the patent rights, if possible; otherwise, it is to be given in charity. The extent of the damage and loss are to be determined by experts in this field, if any; otherwise, you may estimate it yourself and pay what you believe would most likely be sufficient to clear yourself of liability.
For more benefit, please refer to Fatwa 264511.
Allaah Knows best.