is there a way to overwrite custom upcoming event widget

Hello,

I want to overwrite existing upcoming event widget through custom function in function.php file. or can i create custom widget using default event+ upcoming event widget functions. its urgent please let me know asap.

Thanks,