Measuring octane is a lot different than measure the percent of alcohol in fuel. I have measured the ethannol content in E85 and normal pump gas using a pop bottle.
DSMs actually have a sensor on them for measuring octane, it's called a knock sensor.
