You can't do that. There is no Public API is provided by Apple to do so.
If you are looking for Private API, please check this post
문제
How do you find out what current active application you are in or if you are in the springboard's homepages?
해결책
You can't do that. There is no Public API is provided by Apple to do so.
If you are looking for Private API, please check this post