Since I don't want to argue in the comments I will write up a more comprehensive answer.
I will assume this is an actual question as opposed to a homework problem the OP was too lazy to work out.
For a) no this is not the correct way to calculate the odds.
There are two essential problems which are linked by one overarching problem and that is you are using a very poor model for what is going on.
The model you seem to be using assumes two different things.
- That the chances of your win, your friends win and a draw are equal (and thus $1/3$). This can come from assuming that both you and your friend choose between rock, paper and scissors independently of each other and with the same probability for each.
- That the $27$ games you played were independent on each other. That is that the way the preceding games were played has no effect on the way the next game is played.
Both of these assumptions are false. People in general are extremely bad at doing anything randomly especially if it is a voluntary act such as choosing a number or choosing rock/paper/scissors so the idea that you and your friend both choose rock/paper/scissors with a $1/3$ chance each and that moreover these chances are independent on each other (within one game) is very unlikely. So it's most probably not the case that $1/3$ games is a draw.
Secondly it is even more unlikely that the distinct games are independent of each other. You certainly know what the outcomes of the game so far where and as almost certainly influenced by them.
All together, while your answer is pretty much correct assuming two computers with decent random number generators play the game, you get a 1 in $3^{27}$ chance of drawing 27 times in that case, it most probably has little to do with how you and your friend played the game.
As to b) assuming the chance where 1 in $3^{27}$ it's roughly 10 million times less likely than being struck by lightning and roughly 10 thousand times less likely than winning the powerball lottery.