I want to learn about data acquiston how can I read positions and velocity etc data from motors with using STM32 and Mbed.
Here is a lot of tutorials:
Look at especially Using drivers APIs for the page.
Find the board you are going to use from:
From the platform page when you have selected the platform you will find examples to the platform.