Hi @Anna
Please see the similar question on StackOverflow:
https://stackoverflow.com/questions/66138324/how-to-get-sender-ip-using-microsoft-graph-api (answer by Anant Kumar)
----------------------------------
If this is helpful please accept answer.