I guess it depends on where you want to show that warning. If I am not mistaken, when there is a new version available of any plugin installed, a warning like the following one is shown by default.
If that is not enough for your use case, there is also the admin_notices hook, where you can add a more detailed message at the top of your page. Something like: