For that specific situation you can calculate it, but only if the player makes the first raise. If they don't raise then you don't have anything to compare, and if they 3-bet then you can't tell how much of the pot was limped and how much was raised.
You do this by comparing the absolute size of the raise with the size relative to the pot before the raise is made.
Check out
this thread which discusses how to tell whether only the SB had limped prior the the BB's action.