No. And this question doesn't make sense. Your program can write to any part of RAM. How could it possibly know if you're using it or not? As soon as you write into a RAM location it becomes "not used".