Hey @MaybeAnge!
For a simple solution, check out this plugin from the Unreal Engine Marketplace:
https://www.unrealengine.com/marketplace/en-US/product/checkappinstance
Otherwise, check out the source code the same user shared in this thread:
Let me know if this works for you!